import request from '@/utils/request'

export function getDocumentationList(query) {
  return request({
    url: '/popularize/documentation/getList',
    method: 'post',
    data: query
  })
}

export function getDocumentationDetail(id) {
  return request({
    url: '/popularize/documentation/getDetail',
    method: 'post',
    data: id
  })
}

export function saveDocumentation(id) {
  return request({
    url: '/popularize/documentation/save',
    method: 'post',
    data: id
  })
}

export function removeDocumentationByID(id) {
  return request({
    url: '/popularize/documentation/remove',
    method: 'post',
    data: id
  })
}

export function changeDocumentationStatusByID(id) {
  return request({
    url: '/popularize/documentation/change-status',
    method: 'post',
    data: id
  })
}

export function getDocumentationAvabile() {
  return request({
    url: '/popularize/documentation/getAvailable',
    method: 'post'
  })
}

